/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Arrays;

/**
 * <p>Project: javase2203 - Arr10
 * <p>Powered by webrx On 2022-07-12 16:26:10
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Arr10 {
    public static void main(String[] args) {
        String[] ns = {"张三","李四","张三丰"};
        System.out.println((int)('张'));
        System.out.println((int)('李'));
        System.out.println(Arrays.toString(ns));
        //Arrays.sort(ns);
        Arrays.sort(ns,(a,b)->b.compareTo(a));
        System.out.println(Arrays.toString(ns));
    }
}
